
#ifndef __LPF_H__
#define __LPF_H__

#include "stdint.h"

typedef struct 
{
    float a;
    float ac;
    float out;
} lpf_t;

void lpf_init(lpf_t *lpf, int32_t exec_freq, float const_time);
float lpf_run(lpf_t *lpf, float input);

extern lpf_t lpf_voltage, lpf_coil_temp, lpf_board_temp, lpf_battery, lpf_speed;

#endif // __LPF_H__